// assets
let texts = [];
for (let i = 1; i < 9; i++) {
  let o = {
    id: 'text' + i,
    src: './img/scene2/' + i + '.png'
  };
  texts.push(o);
}

let scene3text = [
  {id: 's3gongzuo', src: './img/scene3/1.png', pos: {x: '10%', y: '21%'}},
  {id: 's3luchuan', src: './img/scene3/2.png', pos: {x: '61%', y: '18%'}},
  {id: 's3wangzhe', src: './img/scene3/3.png', pos: {x: '29%', y: '28%'}},
  {id: 's3zhuiju', src: './img/scene3/4.png', pos: {x: '75%', y: '40%'}},
  {id: 's3majiang', src: './img/scene3/5.png', pos: {x: '5%', y: '44%'}},
  {id: 's3guangjie', src: './img/scene3/6.png', pos: {x: '61%', y: '52%'}},
  {id: 's3geyou', src: './img/scene3/7.png', pos: {x: '8%', y: '65%'}},
  {id: 's3daiwa', src: './img/scene3/8.png', pos: {x: '50%', y: '73%'}},
  {id: 's3wa', src: './img/scene3/9.png', pos: {x: '5%', y: '82%'}},
];

let img1 = [
  {id: 'logos', src: './img/logos.png'},
  {id: 'crackBg', src: './img/crack.jpg'},
  {id: 'dots', src: './img/dots.gif'},
  {id: 's4hand', src: './img/s4hand.png'},
  {id: 's4plane', src: './img/s4plane.png'},
  {id: 's4t1', src: './img/s4t1.png'},
  {id: 's4t2', src: './img/s4t2.png'},
  {id: 's4tail', src: './img/s4tail.png'},
  {id: 's4map', src: './img/s4map.jpg'},
  {id: 's4map', src: './img/s4path.png'},
  {id: 's4map', src: './img/s4planeIcon.png'},
  {id: 's5bg', src: './img/s5bg.jpg'},
  {id: 's5plane', src: './img/s5plane.png'},
  {id: 's5btn', src: './img/s5btn.png'},
  {id: 's5text', src: './img/s5text.png'},
];

let img2 = [
  {id: 'arrowLeft', src: './img/arrow-left.png'},
  {id: 'arrowRight', src: './img/arrow-right.png'},
  {id: 's6map1', src: './img/s6map1.jpg'},
  {id: 's6map1', src: './img/s6map1.jpg'},
  {id: 's6map2', src: './img/s6map2.jpg'},
  {id: 's6fish', src: './img/s6fish.png'},
  {id: 's6turtle', src: './img/s6turtle.png'},
  {id: 's6hand', src: './img/s6hand.png'},
  {id: 's6text1', src: './img/s6text1.png'},
  {id: 's6text2', src: './img/s6text2.png'},
  {id: 's7img1', src: './img/s7img1.jpg'},
  {id: 's7img2', src: './img/s7img2.jpg'},
  {id: 's7text', src: './img/s7text.png'},
  {id: 's7text2', src: './img/s7text2.png'},
  {id: 's7slogan', src: './img/s7slogan.png'},
  {id: 's7share', src: './img/s7text2.png'},
  {id: 's7btn1', src: './img/s7btn1.png'},
  {id: 's7btn2', src: './img/s7btn2.png'},
  {id: 's7bar1', src: './img/s7bar1.png'},
  {id: 's7bar2', src: './img/s7bar2.png'},
  {id: 's8bg', src: './img/s8bg.jpg'},
  {id: 's8text1', src: './img/s8text1.png'},
  {id: 's8text2', src: './img/s8text2.png'},
  {id: 's8btn1', src: './img/s8btn1.png'},
  {id: 's8btn2', src: './img/s8btn2.png'},
  {id: 's8coupon', src: './img/s8coupon.png'},
];


let sounds1 = [
  {id: "textComeOut", src: "./sound/textComeOut.mp3"},
  {id: "textDrop", src: "./sound/textDrop.mp3"},
  {id: "crack", src: "./sound/crack.mp3"},
  {id: "fly", src: "./sound/fly.mp3"}
];

let sounds2 = [
  {id: "forest", src: "./sound/forest.mp3"},
  {id: "reef", src: "./sound/reef.mp3"},
  {id: "click", src: "./sound/click.mp3"},
  {id: "videoBg", src: "./sound/videoBg.mp3"}
];

let preload1 = texts.concat(scene3text, img1, sounds1);
let preload2 = img2.concat(sounds2);

let assets = preload1.concat(preload2);